package org.deltaset.meta.internal;

/**
 *
 * @author dmakariev
 */
public class MetaResultImpl {

    private final MetaClassImpl valueMetaClass;
    private final Object value;
    private final MetaActionImpl executedAction;
    private final MetaMessagesImpl messages;

    public MetaResultImpl(MetaClassImpl valueMetaClass, Object value, MetaActionImpl executedAction, MetaMessagesImpl messages) {
        this.valueMetaClass = valueMetaClass;
        this.value = value;
        this.executedAction = executedAction;
        this.messages = messages;
    }

    public MetaActionImpl getExecutedAction() {
        return executedAction;
    }

    public MetaMessagesImpl getMessages() {
        return messages;
    }

    public MetaClassImpl getValueMetaClass() {
        return valueMetaClass;
    }

    public Object getValue() {
        return value;
    }
}
